package com.asy.ui.base;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.xinzhang.R;

public class ListViewCache {

	 private View baseView;  
     private TextView userTextView;
     private TextView caseTextView;
     private TextView timeTextView;
     private ImageView imageView;  

     public ListViewCache(View baseView) {  
         this.baseView = baseView;  
     }  

     public ImageView getImageView() {  
         if (imageView == null) {  
        	 
             imageView = (ImageView) baseView.findViewById(R.id.listimageitem);  
         }  
         return imageView;  
     }

	public TextView getUserTextView() {
		if(userTextView==null)
		{
			userTextView=(TextView)baseView.findViewById(R.id.txt_upuser);
		}
		return userTextView;
	}

	public TextView getCaseTextView() {
		if(caseTextView==null)
		{
			caseTextView=(TextView)baseView.findViewById(R.id.txt_case);
		}
		return caseTextView;
		
	}

	public TextView getTimeTextView() {
		
		if(timeTextView==null)
		{
			timeTextView=(TextView)baseView.findViewById(R.id.txt_time);
		}
		return timeTextView;
	}

	
}
